package com.yanqu.road.entity.crossorewar;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;

/**
 * 矿战活动信息
 */
public class CrossOreStationInfo {

	private int activityId;

	private int stationId;

	private int position;

	private String icon;

	private String stationName;

	private int pitCount;

	private int outputSpeedAddition;

	private int addOutputSpeedAddition;

	private boolean isShowAbility;

	private BigInteger averageAbility = BigInteger.ZERO;

	private int showStationIndex;

	private int blowoutWeight;

	private boolean isNotice;

	/*临时字段↓↓↓↓↓*/

	private int occupyCount;

	//是否井喷
	private boolean isBlowout;

	//冠名是那个区服的，要发送冠名商会通知
	private long serverId;

	//冠名商会id
	private String unionUid;

	//冠名商会名称
	private String unionName;

	//冠名商会的总人数
	private int unionCount;

	//最后一个加入的人的时间
	private int lastJoinTime;

	private List<Long> userIdList = new ArrayList<>();

	public int getActivityId() {
		return activityId;
	}

	public void setActivityId(int activityId) {
		this.activityId = activityId;
	}

	public int getStationId() {
		return stationId;
	}

	public void setStationId(int stationId) {
		this.stationId = stationId;
	}


	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public String getStationName() {
		return stationName;
	}

	public void setStationName(String stationName) {
		this.stationName = stationName;
	}

	public int getPitCount() {
		return pitCount;
	}

	public void setPitCount(int pitCount) {
		this.pitCount = pitCount;
	}

	public int getOutputSpeedAddition() {
		return outputSpeedAddition;
	}

	public void setOutputSpeedAddition(int outputSpeedAddition) {
		this.outputSpeedAddition = outputSpeedAddition;
	}

	public int getAddOutputSpeedAddition() {
		return addOutputSpeedAddition;
	}

	public void setAddOutputSpeedAddition(int addOutputSpeedAddition) {
		this.addOutputSpeedAddition = addOutputSpeedAddition;
	}

	public boolean isShowAbility() {
		return isShowAbility;
	}

	public void setShowAbility(boolean showAbility) {
		isShowAbility = showAbility;
	}

	public int getOccupyCount() {
		return occupyCount;
	}

	public void setOccupyCount(int occupyCount) {
		this.occupyCount = occupyCount;
	}

	public BigInteger getAverageAbility() {
		return averageAbility;
	}

	public void setAverageAbility(BigInteger averageAbility) {
		this.averageAbility = averageAbility;
	}

	public int getShowStationIndex() {
		return showStationIndex;
	}

	public void setShowStationIndex(int showStationIndex) {
		this.showStationIndex = showStationIndex;
	}

	public boolean isBlowout() {
		return isBlowout;
	}

	public void setBlowout(boolean blowout) {
		isBlowout = blowout;
	}

	public long getServerId() {
		return serverId;
	}

	public void setServerId(long serverId) {
		this.serverId = serverId;
	}

	public String getUnionUid() {
		return unionUid;
	}

	public void setUnionUid(String unionUid) {
		this.unionUid = unionUid;
	}

	public String getUnionName() {
		return unionName;
	}

	public void setUnionName(String unionName) {
		this.unionName = unionName;
	}

	public int getUnionCount() {
		return unionCount;
	}

	public void setUnionCount(int unionCount) {
		this.unionCount = unionCount;
	}

	public int getLastJoinTime() {
		return lastJoinTime;
	}

	public void setLastJoinTime(int lastJoinTime) {
		this.lastJoinTime = lastJoinTime;
	}

	public int getBlowoutWeight() {
		return blowoutWeight;
	}

	public void setBlowoutWeight(int blowoutWeight) {
		this.blowoutWeight = blowoutWeight;
	}

	public boolean isNotice() {
		return isNotice;
	}

	public void setNotice(boolean notice) {
		isNotice = notice;
	}

	public void addUserId(long userId){
		if(!this.userIdList.contains(userId)){
			this.userIdList.add(userId);
		}
	}

	public void removeUserId(long userId){
		if(!this.userIdList.contains(userId)){
			this.userIdList.remove(userId);
		}
	}

	//判断是不是有这个玩家
	public boolean containsUserId(long userId){
		return this.userIdList.contains(userId);
	}

	public void removeAllUserId(){
		this.userIdList = new ArrayList<>();
	}

	public void setUserIdList(List<Long> userIdList) {
		this.userIdList = userIdList;
	}

	public List<Long> getUserIdList() {
		return userIdList;
	}
}


